home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
wf200_c.arc
/
WF.006
< prev
next >
Wrap
Text File
|
1990-08-30
|
15KB
|
388 lines
.f3 - # - Chapter 6 - Working With Blocks
.rm70
.mt5
.mb5
.pl66
.tc
.tc 6. WORKING WITH BLOCKS ................................#
6. WORKING WITH BLOCKS
A block of text is an area that starts with a Begin Block marker, and
terminates with an End Block marker. Normally, all text from the
Begining going left to right and down the file is included up to the
end block marker. However, if Column Mode is set, then the block
markers also set column boundaries, and only text within those columns
is included.
.tc Mark a Block of Text ...............................#
Mark a Block of Text
1. Place the cursor at the beginning of the block.
2. Press the block begin keys: Ctl K B or F7.
3. Move the cursor to the end of the block. Press the Block end
sequence: Ctl K K or F8. The block will be highlighted in
complementary colours.
Font Display
If Font display is OFF, then the cursor column position is where the
block marker is set. If Font Display is ON, then if the cursor is
positioned just after a font marker, the beginning block will be moved
left until the character prior to the block marker is not a font
character. Conversely, if the End block marker is positioned before a
font display character, the End block marker will be moved right until
it is positioned over a non font character. This is to ensure that
font characters are included in blocks when they are marked if font
display is ON.
Columns Included
The column the cursor resides in is included in the beginning of
block, but is excluded from the end of block. If column mode is OFF,
then all text between the Beginning and the End markers is included.
When column mode is ON (the status line will show Cols or C Rep) the
text must be within the columns delimited by the beginning and end
markers.
.Tc Hide a Block .......................................#
Hide a Block
Once a block is marked, it can be hidden from view. When it is hidden,
it is treated as if it had never been marked, except that if you enter
the Hide block command a second time without changing the block
markers, then the hidden block will be revealed again.
To hide a block press Ctl K H
.tc Columns ............................................#
Columns
When column mode is active, blocks of text are delineated by columns.
There are 2 types of column mode: Column Mode and Column Replace Mode,
and they affect the way in which blocks of text are moved and copied.
Column Mode
To toggle column mode, enter Ctrl K N. If column mode is OFF, it will
be turned ON, and vice versa. Column mode determines that blocks mark
columns of text, and with word wrap, that words wrap within columns.
The status line will display either Cols or C Rep, depending upon
whether Column Replace is also on.
Column Replace Mode
To toggle column replace mode, enter Ctrl K I. If column replace is
OFF, it will be turned ON, and vice versa. However, it will have no
effect unless column mode is also on.
When column mode is ON and column replace is OFF, columns of text
displace any text on lines they are moved (or copied) into, and lines
they are moved (or deleted) from have their text moved left to fill in
the gap.
When column mode is ON and column replace is ON, columns of text
overwrite text on lines into which they are moved (or copied), and
lines they are moved (or deleted) from have the text replaced by
spaces.
This is covered in more detail in Move, Copy and Delete below.
.Tc Moving a Block .....................................#
Moving a Block
To move a block of text within a file:
1. Mark the block of text with Ctl K B and Ctl K K.
2. Move the cursor to the new location for the block.
3. Press Ctl K V and the text is moved.
4. Press Ctl K H to unmark the block.
If Column mode is OFF, then the moved text will be inserted where the
cursor is, regardless of the setting of INS. The text to the right of
the cursor will be pushed right, and if the block consists of more
than one line, additional lines will be inserted. To move a complete
line, go to column one and mark the begining, and then go down one
line and mark the end in column one as well. The text is deleted from
its original position in a move. If the moved text is all in one line,
then no gap will remain after the text is moved.
In the examples below, the marked text is underlined. The cursor is
shown by a single underline character _
No Columns
(i) Partial line.
Friends, Romans and countrymen, lend me your ears.
Now is the time
becomes
Friends, Re your ears.
Now iomans and countrymen, lend ms the time
.cp7
(ii) Multiple lines
'Twas brillig and the slythy toves
did gyre and gymbol in the gabe.
All mimsey were the borogoves,
_ and mome raths outgabe.
becomes
All mimsey were the borogoves,
'Twas brillig and the slythy toves
did gyre and gymbol in the gabe.
_ and mome raths outgabe.
Column Mode
If Column Mode is ON, and Column Replace mode is OFF, (the status line
shows Cols) then the moved text pushes text on the line to the right
for each line that has text moved to it. The source text is deleted,
and the text on the line flows left to fill in any gaps:
Example
This is the date that the decision was made not to pursue
the assessment, or the date on which the decision was made
not to offer a program, or the date on which the Assessment
deliverables (eg rehabilitation plan or assessment report)
were produced. If not filled in, when the client proceeds to
the Program Details screen, it will default to the start
date from the first current objective.
becomes
Thie that the decision was s is the datmade not to pursue
the or the date on which th assessment,e decision was made
notprogram, or the date on to offer a which the Assessment
delg rehabilitation plan oriverables (e assessment report)
werIf not filled in, when te produced. he client proceeds to
the Program Details screen, it will default to the start
date from the first current objective.
which does not make a lot of sense for text, but serves to illustrate
what happens.
.cp15
Column Replace
If Column Mode is ON, and Column Replace mode is ON, (the status line
shows C Rep) then the moved text overwrites text on the line to the right
for each line that has text moved to it. The source text is deleted,
and the text on the line replaced by spaces.
.cp10
Example
This is the date that the decision was made not to pursue
the assessment, or the date on which the decision was made
not to offer a program, or the date on which the Assessment
deliverables (eg rehabilitation plan or assessment report)
were produced. If not filled in, when the client proceeds to
the Program Details screen, it will default to the start
date from the first current objective.
becomes
Thie that the decision was made not to pursue
the or the date on which th e decision was made
notprogram, or the date on which the Assessment
delg rehabilitation plan or assessment report)
werIf not filled in, when t he client proceeds to
the Program Details screen, it will default to the start
date from the first current objective.
As you can see, column moves will correctly handle overlapping blocks,
provided the cursor is not positioned within the block. If this is the
case, the move rejects. For a column move, the first column of the
block is a valid cursor position, and can be used to move a block up
or down a few lines. Shifting blocks of text left or right in the line
can also be accomplished by the Shift Left and Shift Right commands.
(See below)
NOTE Column mode is checked on the source window, so if you are
copying or moving from one window to another, the settings on
the source window will be assumed to hold for the destination.
If this were not the case, strange things could happen if a
column of text were moved (or copied) and then treated like a
series of lines at the destination.
TIP If you need different column mode setting on 2 windows (ie
column mode on one and column replace on the other) for a move,
set the appropriate settings for the destination on the source
window, and Copy the block. The change the settings on the
source window, Redefine the block, and Delete it.
.Tc Copying a Block ....................................#
Copying a Block
To copy a block of text within a file:
1. Mark the block of text with Ctl K B and Ctl K K.
2. Move the cursor to the new location for the block.
3. Press Ctl K C at the location to copy the text.
Copying functions almost identically to moving a block, except that
the source text is unchanged.
.cp5
.Tc Deleting a Block ...................................#
Deleting a Block
To delete a block of text:
1. Mark the block of text with Ctl K B and Ctl K K .
2. Press Ctl K Y and the text is deleted.
Deleting functions in a similar fashion to moving text, where the
source text is deleted. There is naturally no destination. Deleted
blocks are copied to the Undo buffer, but only as many lines as will
fit. The undo buffer acts as a stack, in that the last line pushed
onto it is the first one out, except that if the buffer is full, the
oldest text is dropped off the bottom, and the space returned
.cp5
.Tc Undeleting a Block .................................#
Undeleting a Block
To undelete the text currently in the Undo Area:
1. Place the cursor where you want to insert the text from the Undo
Area.
2. Press ESC once for each line.
OR
2. Press Ctrl Q V to insert the entire undo buffer.
The amount of text in the undo buffer is limited to the number of
lines you select in the Undo limit menu item on the Load file options
sub menu on the Options menu. It defaults to 20.
.tc Writing to a File ..................................#
Writing to a File
To copy a block of text to another file:
1. Mark the block of text with Ctl K B and Ctl K K.
2. Press Ctl K W. A window will prompt:
filename:
3. Type a file name and press Enter.
If the block is defined as a column, only a column will be written.
.tc Inserting a File ...................................#
Inserting a File
To insert a file into the file you are editing:
1. Press Ctl K R where you want the file inserted. A window will
prompt
filename:
2. Type a file name and press Enter. The file will be inserted after
the cursor.
The file is treated as not column mode, and the setting of the
destination window are ignored.
TIP If you want to read in a file as a column, open a separate
window for the file, and read it there. Then set the column
settings you want, mark the block of text in the file, and Copy
or Move it to the Destination window.
.cp5
.tc Shift Left .........................................#
Shift Left
A marked block can be shifted left or right on the line(s). Column
mode blocks can also be shifted.
To shift a marked block left press Ctrl K < or Ctrl F7. You will be
prompted for the number of columns to move the block.
Blocks that are not column mode blocks can be shifted left beyond the
left margin. Any characters shifted beyond the left margin will be
lost.
Column mode blocks always behave as if Comumn Replace is ON. That is
that text overwrites any text to the left, and columns left blank are
blanked. It is not possible to shift a column mode block beyond the
left margin.
.cp5
.tc Shift Right ........................................#
Shift Right
To shift a marked block right press Ctrl K > or Ctrl F8. You will be
prompted for the number of columns to move the block.
As the block is shifted to the right, the columns vacated are filled
with spaces. It is not possible to shift a block further right than the
maximum line length, which is 999 characters.
Column mode blocks always behave as if Comumn Replace is ON. That is
that text overwrites any text to the right, and columns left blank are
blanked.
.tc Strip Hi Bits ......................................#
Strip Hi Bits
Some word processors such as WordstarTM can set the hi bits of certain
characters on, resulting in the text looking like Greek or something.
You can turn off hi bits when you load a file (refer to Load File
Options) or you can mark a block and turn off the hi bits in the
block.
To strip off hi bits in a marked block, press Ctrl K ^ (shift plus the
6 key)
For example:
áíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╘╒╓╫╪┘┌█µτΦΘ
becomes
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRTUVWXYZ[fghi
.tc Toggle Case ........................................#
Toggle Case
Toggling the case of a marked block means turning capital letters into
lower case letters and vice versa. If the block is marked and visible,
and the cursor is positioned in the block, the command affects the
entire block. Otherwise the command operates only on the character
under the cursor.
To change the case of a block, press Alt F10.
.tc To Upper Case ......................................#
To Upper Case
This command turns characters into upper case. If the block is marked
and visible, and the cursor is positioned in the block, the command
affects the entire block. Otherwise the command operates only on the
character under the cursor.
To convert to Upper case, press Ctlr K ". (you need the shift key for ")
.tc To Lower Case ......................................#
To Lower Case
This command turns characters into Lower case. If the block is marked
and visible, and the cursor is positioned in the block, the command
affects the entire block. Otherwise the command operates only on the
character under the cursor.
To convert to Upper case, press Ctlr K '. (no shift key for ')
.tc Format Block .......................................#
Format Block
This command applies the format paragraph command to the marked block.
You will need word wrap to be active for this to work.
Press Ctrl K F.
In non column mode, each paragraph that is part of the marked block is
reformatted.
In column mode, the start and end block markers define the line
boundaries of the paragraph reformating. The columns are determined
from the columns set in the ruler line, and depend on where the cursor
is. Reformatting columns of text without reference to existing column
margins does not make a lot of sense.